# Generated automatically from Makefile.in by configure.
CC=g++
CFLAGS=-g -I/usr/local/openssl/include/  -Wall
LD=-L/usr/local/openssl/lib  -lssl -lcrypto -ldl -lpthread -lsqlite3
DISTDIR=Test

DIST=common.cpp \
	common.h \
	HttpProtocol.cpp \
	HttpProtocol.h \
	MyWebServer.cpp \
	ManagerUtils/DbManager.h\
	ManagerUtils/DbManager.cpp\
	ManagerUtils/RouteManager.h\
	ManagerUtils/RouteManager.cpp\
	Manager.cpp\
	Controllers/Controllers.cpp\
	Controllers/Controllers.h\
	Controllers/MainController.cpp\
	Controllers/MainController.h\

all: MyWebServer Manager
  
MyWebServer: common.o MyWebServer.o HttpProtocol.o Controllers/Controllers.o Controllers/MainController.o
	$(CC) common.o MyWebServer.o HttpProtocol.o  Controllers/Controllers.o Controllers/MainController.o -o MyWebServer $(LD)
Manager: ManagerUtils/RouteManager.o ManagerUtils/DbManager.o Manager.o
	$(CC) ManagerUtils/RouteManager.o ManagerUtils/DbManager.o Manager.o -o Manager $(LD)

clean:	
	rm *.o MyWebServer
	rm Manager
	rm ManagerUtils/*.o
	rm Controllers/*.o
dist:
	rm -rf ${DISTDIR}; mkdir ${DISTDIR}
	cp ${DIST} ${DISTDIR}
	rm -f ${DISTFILE}
	tar cf - ${DISTDIR} | gzip > ${DISTFILE}
